package com.mtons.mblog.modules.service;

import com.mtons.mblog.modules.entity.DocumentQuestion;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @author : langhsu
 * @version : 1.0
 * @date : 2019/1/18
 */
public interface DocumentQuestionService {
    /**
     * 根据关键字搜索
     *
     * @param pageable 分页
     * @param term     关键字
     * @throws Exception
     */
    Page<DocumentQuestion> search(Pageable pageable, String term) throws Exception;

    /**
     * 重建
     */
    void resetIndexes();

    long add(DocumentQuestion documentQuestion);
}
